<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/local/css/login.css}" rel="stylesheet">
    <link th:href="@{/local/css/page.css}" rel="stylesheet">
</head>
<body>
<div th:text="${zc}">更新成功</div>
<div id="top" th:include="top.html::top"></div>

<div id="middle">
    <div id="left" th:include="left.html::left"></div>
    <div id="right">
        <hr>
        <form action="/editGoods" method="post">
            <input type="text" th:value="${goods.getGdid()}" name="gdid">
            <table>
                <tr>
                    <td>名称</td>
                    <td><input type="text" th:value="${goods.getGdname()}" name="gdname"></td>
                </tr>
                <tr>
                    <td>编号</td>
                    <td><input type="text" th:value="${goods.getGdcode()}" name="gdcode"></td>
                </tr>
                <tr>
                    <td>类别</td>
                    <td>
                        <select name="tid">
                            <option th:each="gdt:${gdt}"
                                    th:value="${gdt.getTid()}"
                                    th:text="${gdt.getTname()}"
                                    th:selected="${gdt.getTid()} eq ${goods.getTid()}">
                            </option>

                        </select>
                    </td>
                </tr>
                <tr>
                    <td>单价</td>
                    <td><input type="text" th:value="${goods.getGdprice()}" name="gdprice"></td>
                </tr>
                <tr>
                    <td>数量</td>
                    <td><input type="text" th:value="${goods.getGdquantity()}" name="gdquantity"></td>
                </tr>
                <tr>
                    <td>城市</td>
                    <td><input type="text" th:value="${goods.getGdcity()}" name="gdcity"></td>
                </tr>
                <tr>
                    <td>产品描述</td>
                    <td><textarea type="text" th:value="${goods.getGdinfo()}" name="gdinfo"></textarea></td>
                </tr>
                <tr>
                    <td>是否热销</td>
                    <td>
                        <input type="radio" name="gdhot" th:attr="checked =${goods.getGdhot()} ==1" value="1">是
                        <input type="radio" name="gdhot" th:attr="checked =${goods.getGdhot()} !=1" value="0">否
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="button" value="返回" onclick="javascript:history.back()">
                        <input type="reset" value="重置">
                        <input type="submit" value="提交">
                    </td>
                </tr>

            </table>

        </form>

    </div>
</div>
<div id="bottom" th:include="bottom.html::bottom"></div>
</body>
</html>